package com.zhxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhxy.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

public interface StudentMapper extends BaseMapper<Student> {

    /**
     * 自定义sql分页查询
     * @param page 分页查询的参数必须放在第一位
     * @param student
     * @return
     * @throws SQLException
     */
    Page<Student> selectStudentListByPage(Page<Student> page,@Param("student") Student student) throws SQLException;


    int deleteByIds(Integer[] ids) throws SQLException;
}
